<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>黑白棋（Othello）小游戏</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div id="root-othello-center">
        <h1>黑白棋（Othello）</h1>
        <div id="game-mode-select">
            <label for="mode">对战模式：</label>
            <select id="mode">
                <option value="pvp">本地双人</option>
                <option value="ai">人机对战</option>
            </select>
            <label for="ai-level" style="margin-left:16px;">AI难度：</label>
            <select id="ai-level">
                <option value="easy">简单</option>
                <option value="normal">普通</option>
                <option value="hard">困难</option>
            </select>
            <label for="board-size" style="margin-left:16px;">棋盘尺寸：</label>
            <select id="board-size">
                <option value="8">8×8（标准）</option>
                <option value="10">10×10</option>
                <option value="12">12×12</option>
                <option value="custom">自定义</option>
            </select>
            <input id="custom-size" type="number" min="4" max="32" step="2" value="8" style="width:60px;display:none;margin-left:6px;" placeholder="偶数" />
        </div>
        <div id="main-container">
            <div id="left-panel">
                <div id="game-info">
                    <span id="current-player">当前轮到：黑棋</span>
                    <span id="score">黑棋: 2 | 白棋: 2</span>
                </div>
                <div id="stats" style="margin:10px 0 0 0;font-size:1.1em;"></div>
                <div id="action-bar">
                    <button id="undo">悔棋</button>
                    <button id="restart">重新开始</button>
                </div>
                <div id="board"></div>
            </div>
            <div id="history"></div>
        </div>
    </div>
    <script src="script.js"></script>
</body>
</html> 